Arduino Projects For Dummies by Brock Craft

Arduino Projects For Dummies by Brock Craft
Author: Brock Craft
Language: eng
Format: epub, pdf
Publisher: Wiley
Published: 2013-06-02

const int strikePin = 9; // The pin that actuates the relay for the door strike

const int slaveSelect = 10; // Pin used to enable the slave pin on the MAX72xx

char code[4]= {'1','2','3','4'}; // Set your code here

char codeBuffer[4]; // Stores the code that currently is being entered

boolean DEBUG=true; // Set to true to print status messages to the serial port

int keypressCount=0; // Counts how many times a key has been pressed

// The keyMap defines the character returned when its key is pressed

const char keyMap[numRows][numCols] = {

{ '1', '2', '3' },

{ '4', '5', '6' },

{ '7', '8', '9' },

{ '*', '0', '#' }

};